package com.cencat.mapper;

import com.cencat.domain.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {

    Student getStudentById(int id);

    List<Student> getAll();

    void addStudent(Student student);

    void updateStudent(Student student);

    void deleteStudent(int id);

    List<Student> getStudentByPage(int page,int size);



}
